package com.example.shop_2302.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shop_2302.R
import com.example.shop_2302.room.Comment

class CommentAdapter:BaseQuickAdapter<Comment,BaseViewHolder>(R.layout.item_comment) {
    override fun convert(holder: BaseViewHolder, item: Comment) {
        holder.setText(R.id.comment_name,item.name)
        holder.setText(R.id.comment_msg,item.msg)
        holder.setText(R.id.comment_createtime,item.createtime)
    }
}